//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.dao.wills;

import com.aidong.dao.base.OrderSet;
import com.aidong.dao.wills.BaseDao;
import com.aidong.model.wills.PromotionCardType;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public class PromotionCardTypeDao extends BaseDao<PromotionCardType, Integer> {
	public PromotionCardTypeDao() {
	}

	public PromotionCardType getPromotionCardType(int promotionId, String cardType) {
		return (PromotionCardType)this.getByWhere("promotionId=:p1 and cardType=:p2", new Object[]{Integer.valueOf(promotionId), cardType});
	}

	public List<PromotionCardType> getCardTypeList(int promotionId) {
		return this.queryList("promotionId=:p1", new Object[]{Integer.valueOf(promotionId)}, (new OrderSet()).asc("cardType"), -1);
	}
}
